/**
 * @author : dormi330
 * @date : 2020-03-05
 * description : 促销结果：应用在订单/订单行 上，修改金额/添加新行
 */

package isvb.impl.model;

import org.dormi.learn.promotion.model.Order;
import org.dormi.learn.promotion.model.OrderLine;
import org.dormi.learn.promotion.model.Promotion;
import org.dormi.learn.promotion.model.PromotionResult;
import org.dormi.learn.promotion.util.BaseSerializable;

import java.math.BigDecimal;
import java.util.List;

public class PromotionResultIsvB  extends BaseSerializable implements PromotionResult {

    private Order order;
    private Promotion promotion;
    private List<OrderLine> appliedLines;
    private BigDecimal freeAmount;
    private List<OrderLine> giftLines;

    @Override
    public Order getOrder() {
        return order;
    }

    @Override
    public Promotion getPromotion() {
        return promotion;
    }

    @Override
    public List<OrderLine> getAppliedLines() {
        return appliedLines;
    }

    @Override
    public List<OrderLine> getGiftLines() {
        return giftLines;
    }

    @Override
    public BigDecimal getFreeAmount() {
        return freeAmount;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public void setPromotion(Promotion promotion) {
        this.promotion = promotion;
    }

    public void setAppliedLines(List<OrderLine> appliedLines) {
        this.appliedLines = appliedLines;
    }

    public void setFreeAmount(BigDecimal freeAmount) {
        this.freeAmount = freeAmount;
    }

    public void setGiftLines(List<OrderLine> giftLines) {
        this.giftLines = giftLines;
    }
}
